<?php include 'conf/base.php';?>


<?php $title = gettext("Mi Sección | Anuncios Locales")?>
<?php $descripcion = gettext("Mi Sección | Anuncios Locales")?>
<?php $keywords = gettext("Mi Sección | Anuncios Locales")?>

<?php include 'template_header_subdominios.php'?>
<?php include 'template_nav_bar_subdominios.php';?>
<?php include 'template/recurso_zebra_pagination_css.php'?>

	<div class="container">
    <div class="row">       
        <div class="col-md-8">
    <?php
        
 	   if(logged_in()){
    
       $seccion = $_GET['seccion'];

       switch ($seccion) {
          case "publicaciones_activas":
               include 'miseccion/publicaciones_activas.php';
               break;
          case "publicaciones_finalizadas":
                include 'miseccion/publicaciones_finalizadas.php';
               	break;
          case "preguntas_pendientes":
               include 'miseccion/preguntas_pendientes.php';
               break;
          case "respuestas_recibidas":
               	include 'miseccion/respuestas_recibidas.php';
               	break;
          case "compras_pendientes":
               include 'miseccion/compras_pendientes.php';
               break;
          case "ventas_pendientes":
               include 'miseccion/ventas_pendientes.php';
               break;
          case "historial_ventas":
               include 'miseccion/historial_ventas.php';
               break;
          case "historial_compras":
               include 'miseccion/historial_compras.php';
               break;
          case "estadisticas":
               include 'miseccion/estadisticas.php';
               break;
          case "mis_datos":
               include 'miseccion/mis_datos.php';
               break;
          case "alads":
               	include 'miseccion/alads.php';
               	break;
           default:
               include 'miseccion/publicaciones_activas.php';
               break;
        }
        echo "</div>";
        ?>
        
         <div class="col-md-4">
 	   	 
 	   	 	<section class="margin-top">
 	   	 	
 	   	 	<?php include 'adsense_miseccion_derecha.php';?>
 	   	 	
 	   	 	</section>
 	   	 
 	   	 </div>
 	   	 <?php 
 	   } else { //usuario no logueado ?>
 	   	
 	   	<br>
 	   	<div class="alert alert-danger">	
			   <strong><?php echo gettext("Para acceder a su sección debe ")?> </strong><a href="<?php echo get_login_url()?>"> <?php echo gettext("iniciar sesión")?></a><strong> <?php echo gettext("ó")?> </strong><a href="<?php echo get_registro_url()?>"><?php echo gettext("registrarse")?></a>
		</div>
		
   		 <?php include 'template_ultimos_anuncios_clasificados_slider_subdominios.php'?>		
 	   	 </div>
 	   	 <div class="col-md-4">
 	   	 
 	   	 	<section class="margin-top">
 	   	 	
 	   	 	<?php include 'adsense_miseccion_derecha.php';?>
 	   	 	
 	   	 	</section>
 	   	 
 	   	 </div>
 	   	
 	 <?php }
     ?>
 	
  	</div>
  </div>

<?php include 'template_footer_subdominios.php'?>
<?php include 'template_side_bar_subdominios.php';?>

<!-- Scripts -->
<!-- Compiled in vendors.js -->
<!--
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/jquery.cookie.js"></script>
<script src="assets/js/imagesloaded.pkgd.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/bootstrap-switch.min.js"></script>
<script src="assets/js/wow.min.js"></script>
<script src="assets/js/slidebars.min.js"></script>
<script src="assets/js/jquery.bxslider.min.js"></script>
<script src="assets/js/holder.js"></script>
<script src="assets/js/buttons.js"></script>
<script src="assets/js/jquery.mixitup.min.js"></script>
<script src="assets/js/circles.min.js"></script>
<script src="assets/js/masonry.pkgd.min.js"></script>
<script src="assets/js/jquery.matchHeight-min.js"></script>
-->

<script src="http://<?php echo DOMINIO_BASE_COMPLETO?>/js/vendors.js"></script>
<script src="http://<?php echo DOMINIO_BASE_COMPLETO?>/js/funcionesjs.js"></script>

<!-- Syntaxhighlighter -->
<script src="http://<?php echo DOMINIO_BASE_COMPLETO?>/js/syntaxhighlighter/shCore.js"></script>
<script src="http://<?php echo DOMINIO_BASE_COMPLETO?>/js/syntaxhighlighter/shBrushXml.js"></script>
<script src="http://<?php echo DOMINIO_BASE_COMPLETO?>/js/syntaxhighlighter/shBrushJScript.js"></script>

<script src="http://<?php echo DOMINIO_BASE_COMPLETO?>/js/app.js"></script>
<script src="http://<?php echo DOMINIO_BASE_COMPLETO?>/js/index.js"></script>

</body>

</html>
